import request from '@/utils/request'

// 查询仓储费列表
export function listWarehouse(query) {
  return request({
    url: '/fees/warehouse/list',
    method: 'get',
    params: query
  })
}

// 查询仓储费详细
export function getWarehouse(warehouseFeeId) {
  return request({
    url: '/fees/warehouse/' + warehouseFeeId,
    method: 'get'
  })
}

// 新增仓储费
export function addWarehouse(data) {
  return request({
    url: '/fees/warehouse',
    method: 'post',
    data: data
  })
}

// 修改仓储费
export function updateWarehouse(data) {
  return request({
    url: '/fees/warehouse',
    method: 'put',
    data: data
  })
}

// 删除仓储费
export function delWarehouse(warehouseFeeId) {
  return request({
    url: '/fees/warehouse/' + warehouseFeeId,
    method: 'delete'
  })
}
